package com.example.recyclerview_deep.pojo;

import java.util.Objects;

public class Goods {
    private String Name;
    private int ViewType;

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        Goods goods = (Goods) o;
        return ViewType == goods.ViewType && Objects.equals(Name, goods.Name);
    }

    @Override
    public int hashCode() {
        return Objects.hash(Name, ViewType);
    }

    public String getName() {
        return Name;
    }

    public void setName(String name) {
        Name = name;
    }

    public int getViewType() {
        return ViewType;
    }

    public void setViewType(int viewType) {
        ViewType = viewType;
    }
}
